package com.ztom.test

import com.ztom.context.support.ClassPathXmlApplicationContext
import kotlin.test.Test

/**
 * @author ZhangTao
 */
class Test08InitAndDestroy {

    @Test
    fun test() {
        val applicationContext = ClassPathXmlApplicationContext("classpath:spring-08-init-and-destroy.xml")

        applicationContext.registerShutdownHook()
    }
}